package com.huaxiafinance.management.service;

import com.huaxiafinance.management.dto.request.AdvertisementDto;
import com.huaxiafinance.management.dto.request.QueryAdversitementDto;
import com.huaxiafinance.management.model.YfqAdvertisement;
import com.huaxiafinance.management.model.YfqImg;

import java.util.List;
import java.util.Map;

/**
 * Created by xieWei on 2017/11/07
 */
public interface YfqAdvertisementService {

  public List<YfqAdvertisement> queryYfqAdversitement(QueryAdversitementDto queryAdversitementDto)
      throws Exception;

  public boolean updateByPrimaryKey(AdvertisementDto dto) throws Exception;

  public boolean insertYfqAdvertisement(AdvertisementDto dto) throws Exception;

  boolean updateState(String id, Integer state);

  boolean updateTop(String id);

  //计算条数
  int count(Integer locationType);

  //查询广告
  YfqAdvertisement selectYfqAdvById(String id);

  void updateOrAddImg(String url);

  //活动banner
  YfqImg getBannerImg();

  Map getRaidersUrl();

  void updateRaidersUrl(String url);
}
